import request from '@/utils/request'

// 查询地址变更列表
export function listDzbg(query) {
  return request({
    url: '/event/dzbg/list',
    method: 'get',
    params: query
  })
}

export function queryDzbg(query) {
  return request({
    url: '/event/dzbg/query',
    method: 'post',
    data: query
  })
}



// 查询地址变更详细
export function getDzbg(dzbgId) {
  return request({
    url: '/event/dzbg/' + dzbgId,
    method: 'get'
  })
}

// 新增地址变更
export function addDzbg(data) {
  return request({
    url: '/event/dzbg',
    method: 'post',
    data: data
  })
}

// 修改地址变更
export function updateDzbg(data) {
  return request({
    url: '/event/dzbg',
    method: 'put',
    data: data
  })
}

// 删除地址变更
export function delDzbg(dzbgId) {
  return request({
    url: '/event/dzbg/' + dzbgId,
    method: 'delete'
  })
}
